package com.train.mgr.modules.system.dto.response;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 组织信息架构对象
 */
@Data
public class TreeNode implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 节点ID */
    @ApiModelProperty(name = "id", value = "节点ID(公司组织ID)")
    private Long deptId;

    /** 父节点ID */
    @JsonIgnore
    private Long parentId;

    /** 节点名称 */
    @ApiModelProperty(name = "label", value = "节点名称（公司组织名称）")
    private String deptName;

    /** 员工人数  */
    @ApiModelProperty(name = "employeeCount", value = "员工人数")
    private Long employeeCount;

    private List<TreeNode> children;


}
